PARSER=parser
DUG=debug
HTTP_SERVER=http_server
cc=g++

.PHONE:all
all:$(PARSER) $(DUG) $(HTTP_SERVER)

$(PARSER):parser.cc
		$(cc) -o $@ $^ -lboost_system -lboost_filesystem -std=c++11
$(DUG):debug.cc
		$(cc) -o $@ $^ -ljsoncpp -std=c++11 -lpthread
$(HTTP_SERVER):http_server.cc
		$(cc) -o $@ $^ -ljsoncpp -lpthread -std=c++11
.PHONE:clean
clean:
		rm -f $(PARSER) $(DUG) $(HTTP_SERVER)
